import request from '@/utils/request';

export async function getComplaintFileInfoByPage (params: any) {
    return request('/api/quality/getComplaintFileInfoByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addComplaintFileInfo (params: any) {
    return request('/api/quality/addComplaintFileInfo', {
    method: 'POST',
    data: params,
  });
}

export async function updateComplaintFileInfo (params: any) {
    return request('/api/quality/updateComplaintFileInfo', {
    method: 'POST',
    data: params,
  });
}

export async function delComplaintFileInfo (params: any) {
    return request('/api/quality/delComplaintFileInfo', {
    method: 'POST',
    data: params,
  });
}


export async function exportComplaintFileInfo(params: any) {
    return request('/api/quality/exportComplaintFileInfo', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getComplaintFileInfoByPage, addComplaintFileInfo, updateComplaintFileInfo, delComplaintFileInfo, exportComplaintFileInfo }
